package com.jiang.smartdangjian.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.cardview.widget.CardView;

import com.jiang.smartdangjian.R;

public class S2DActivity extends BaseActivity implements View.OnClickListener {

    private TextView textView28;
    private ImageView imageView14;
    private CardView cardView;
    private TextView textView29;
    private TextView textView33;
    private Button button2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_s2_d);
        initView();
        setTitle("活动详情");
    }

    private void initView() {
        textView28 = (TextView) findViewById(R.id.textView28);
        imageView14 = (ImageView) findViewById(R.id.imageView14);
        cardView = (CardView) findViewById(R.id.cardView);
        textView29 = (TextView) findViewById(R.id.textView29);
        textView33 = (TextView) findViewById(R.id.textView33);
        button2 = (Button) findViewById(R.id.button2);

        button2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.button2:
                toast("报名成功");
                button2.setText("已报名");
                button2.setEnabled(false);
                break;
        }
    }
}